package com.onetime.mall.trading.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.onetime.mall.trading.entity.MessageEntity;
import com.onetime.mall.trading.utils.PageUtils;
import com.onetime.mall.trading.vo.MessageAndUserVo;

import java.util.List;
import java.util.Map;

/**
 * 留言表
 *
 * @author liyixuan
 * @email liyixuan106@163.com
 * @date 2022-03-26 19:38:29
 */
public interface MessageService extends IService<MessageEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean deleteMessage(Long id);

    List<MessageAndUserVo> getAllIdleMessage(Long idleId);

    List<MessageAndUserVo> getAllMyMessage(Long userId);

    MessageEntity getMessage(Long id);

    boolean addMessage(MessageEntity messageEntity);
}

